package com.zhuge_new.Base;

import com.zhuge_new.Mvp.CallBack.MvpCallback;


/**
 * Created by Administrator on 2018/10/25.
 */

public abstract class BaseModel<T> {
    //数据请求参数
    protected String[] params;

    //设置数据请求参数
    public BaseModel params(String... args){
        params=args;
        return this;
    }

    //添加Callback并执行数据请求,具体数据请求由子类实现
    public abstract void execute(MvpCallback<T> callback);


}
